<html>
<head>
    <meta charset="UTF-8">
    <title>户学教育——中小学在线1对4辅导，全职名师，免费试听！</title>
    <meta name="keywords" content="户学教育">
    <meta name="Description" content="户学教育"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,  user-scalable=0"/>
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/idangerous.swiper.css?t={time()}.{rand(10000,9999999)}">
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/common.css?t={time()}.{rand(10000,9999999)}">
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/mine.css?t={time()}.{rand(10000,9999999)}"/>


    <script src="{HOME_THEME_PATH}../gw/js/jquery.min.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript"t src="{THEME_PATH}js/dialog-plus.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript" src="{THEME_PATH}js/jquery.artDialog.js?t={time()}.{rand(10000,9999999)}&skin=default"></script>
    <script type="text/javascript" src="{THEME_PATH}js/dayrui.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript" src="{HOME_THEME_PATH}../gw/js/le_include_head.js?t={time()}.{rand(10000,9999999)}"></script>
    <link rel="icon" href="{HOME_THEME_PATH}../gw/img/f-logo.png" type="image/png" sizes="16x16">

</head>
<body>
<div class="main">
    <!-- 头部 -->
    {template "../gw/common.html"}
    <div class="part part1">
        <div class="part-cont">
            <!-- 目录 -->
            <div class="menu-items pay-item">
                <a class="menu-item" href="{dr_user_url('home/index')}">个人中心</a>
                <a class="menu-item le-my-order active" href="{dr_user_url('pay/myorder')}">我的订单</a>
                 <a class="menu-item" href="{dr_user_url('pay/electivecenter')}">选课中心</a>
                <a class="menu-item" href="{dr_user_url('pay/changepassword')}">修改密码</a>
            </div>
            <!-- 内容 -->
            <div class="cont-items pay-content">
                <!-- &lt;!&ndash; 我的订单 &ndash;&gt; -->
                <div class="cont-item count-order" style="display: block;">
                    <!-- 订单页面标题 -->
                    <div class="cont4-title">
                        <div class="cont4-main-title wechat-pay">我的订单 - 选择支付方式 - 微信支付</div>
                    </div>
                    <!-- &lt;!&ndash; 订单内容 &ndash;&gt;-->
                    <div class="cont4-conts" style="height: 650px;padding-top:40px;">
                        <div class="cont4-cont active">
                            <div class="pay-title">微信支付</div>
                            <div class="pay-box">
                                <div class="pay-box-title">扫一扫支付（元）</div>
                                <div class="pay-money price">{$order['totalprice']}</div>
                                <div class="pay-qrcode">
                                    {if !empty($url)}
                                         <img src="http://hx1v4.com/api/linepay/weixin/example/qrcode.php?data={$url}" alt="" class="order-img-box">
                                    {/if}

                                </div>
                                <div class="pay-footer">
                                    <div class="">打开手机微信</div>
                                    <div class="">扫一扫继续付款</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 页尾 -->
    {template "../gw/footer.html"}
    </div>
    <div class="slide-box">
        <div class="slide-box-wrap">
            <div class="foo-box">
                <div id="foo"></div>
            </div>
        </div>
    </div>
    <!--
    <div class="success-poup-box not-success">
        <div class="box-contect1">支付未完成，请重新支付</div>
    </div>
    -->
    </body>
    <script>
        $(function(){
            $("body>.success-poup-box.not-success").fadeIn("slow");
            $("body>.success-poup-box.not-success").delay(1000).fadeOut("slow");
            $(".cont1-btn-change").click(function(){
                var user = '{$data}';
                us = JSON.parse(user);
                alert(user);
                $(".cont1-name").html(us.name);
                $("input[name='name']").val(us.name);
                if(us.sex == 1){
                    $(".select-sex").find('option').eq(1).val(1).text('女').prop("selected",true);
                }else if(us.sex == 2){
                    $(".select-sex").find('option').eq(2).val(2).text('男').prop("selected",true);
                }else{
                    $(".select-sex").find('option').eq(0).val('').text('请选择').prop("selected",true);
                }
                //判断省市区是否被选择
                var province = us.province,
                    city = us.city,
                    area = us.area;
                console.log(province);
                if(province){
                    city_select(".select-province option",province);
                }
                if(city){
                    $(".select-city").html("<option value='"+area+"'>"+area+"</option>");
                }
                if(area){
                    $(".select-area").html("<option value='"+area+"'>"+area+"</option>");
                }
            });
            function city_select(position,verification){
                $(position).each(function(){
                    if($(this).val()==verification){
                        $(this).prop("selected",true);
                    }
                });
            }
        });

    </script>
    <script language=javascript>
        var int=self.setInterval("orderStatus()",3000)
        function orderStatus()
        {
            $.post("{dr_user_url('order/orderStatus')}",
                {
                    oid:"{$order['id']}"
                },
                function(data,status){
                    var orders = JSON.parse(data);console.log(orders);
                    if(orders.status){
                        // alert(orders.msg);
                        window.location.href = "{dr_user_url('pay/myorder')}";
                    }else{
                        // alert(orders.msg);
                    }
                });
        }
    </script>
    <script src="{HOME_THEME_PATH}../gw/js/idangerous.swiper.min.js?t={time()}.{rand(10000,9999999)}"></script>
    <!--<script src="{HOME_THEME_PATH}../gw/js/area.js?t={time()}.{rand(10000,9999999)}"></script>-->
    <!--<script src="{HOME_THEME_PATH}../gw/js/alloy-crop.js?t={time()}.{rand(10000,9999999)}"></script>-->
    <script src="{HOME_THEME_PATH}../gw/js/lrz.mobile.min.js?t={time()}.{rand(10000,9999999)}"></script>
    <script src="{HOME_THEME_PATH}../gw/js/mine.js?t={time()}.{rand(10000,9999999)}"></script>
    <script src="{HOME_THEME_PATH}../gw/js/iscroll.js?t={time()}.{rand(10000,9999999)}"></script>
    <script src="{HOME_THEME_PATH}../gw/js/unlock.js?t={time()}.{rand(10000,9999999)}"></script>
    <script src="{HOME_THEME_PATH}../gw/js/jquery.slideunlock.min.js?t={time()}.{rand(10000,9999999)}"></script>
</html>